home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re FW_CDesc GetShortInteger et < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re:FW_CDesc::GetShortInteger etc.
  2. Sent:        6/23/96 6:38 PM
  3. Received:    6/24/96 8:24 AM
  4. From:        Greg Friedman, friedman@cognosis.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 3:40 AM 6/22/96, Hutchings Software Development wrote:
  9. > The implementation of this method appears to be missing.
  10.  
  11. I think you are referring to PutShortInteger, not GetShortInteger. I
  12. defined PutShortInteger, but for some reason, it wasn't implemented. I'll
  13. fix it for the next release.
  14.  
  15. >
  16. > Also, would it be possible to somehow add a method GetRect?
  17.  
  18. FW_CDesc already has GetRect and PutRect methods.
  19.  
  20. >
  21. > Finally, it would be very cool to define an ODF apple event suite that has
  22. > all the basic types like FW_CFixed, FW_CRect, FW_CPoint. Or should the OD
  23. > types be defined in the OpenDoc suite? Gee, I don't know, but I do know it
  24. > would be cool to have some of those things pre-defined!
  25.  
  26. The types you list shouldn't be defined in an AppleEvent suite. Scripting
  27. in OpenDoc is dependent on the standard primitives defined in the
  28. AppleEvent Registry. ODF already wraps rects and points with FW_CRect and
  29. FW_CPoint. Your ODF code gets written in terms of these classes. Your users
  30. shouldn't have to care about the ODF object model, or the wrapper classes
  31. we use. They talk in terms of shorts and integers and colors and
  32. rectangles.
  33.  
  34. You can think of FW_CDesc as the translation layer that lets your users
  35. script in terms of AppleEvent Registry classes, and lets you code in terms
  36. of ODF classes.
  37.  
  38. Greg.
  39.  
  40.  
  41. _________________________________________________________
  42. Greg Friedman      ODF Engineering       Apple Computer
  43.  
  44.